package com.panda.pmx.config;

import com.panda.pmx.filter.SpringJsessionidRdfFilter;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FilterConfig {
    @Bean
    public FilterRegistrationBean registerAuthFilter() {
        FilterRegistrationBean registration = new FilterRegistrationBean();
        registration.setFilter(new SpringJsessionidRdfFilter());
        registration.addUrlPatterns("/*");
        registration.setName("rdfFilter");
        registration.setOrder(1);
        return registration;
    }
}
